-- GENERATED SPELL FOR [Sentinel Spy] --


function spell0_16330(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(7159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16330', 569, 1)
end

function spell1_16330(pUnit, Event) --@Sinister Strike,n/a--
pUnit:FullCastSpellOnTarget(14873,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16330', 613, 1)
end

function Sorts_16330(pUnit, Event)
local choix_sorts_16330 = math.random(0, 1)
if choix_sorts_16330 == 0 then
pUnit:RegisterEvent('spell0_16330', 1, 1)
end
if choix_sorts_16330 == 1 then
pUnit:RegisterEvent('spell1_16330', 1, 1)
end
end

function mob16330_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16330', math.random(1500, 3000), 1)
end

function mob16330_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16330_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16330_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16330, 1, 'mob16330_Action')
RegisterUnitEvent(16330, 2, 'mob16330_Leave')
RegisterUnitEvent(16330, 3, 'mob16330_Kill')
RegisterUnitEvent(16330, 4, 'mob16330_Die')
